<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="${request.contextPath}/js/jquery-3.3.1.js" type="text/javascript"></script>
    <script>
        $(function () {
            $("#dream").click(function () {
                alert("加油！奥利给！");
            });
        });
    </script>
</head>
<body>
欢迎${username}登录<br>
<#if (age < 18)>未成年人请在家长的陪同下访问
<#elseif (age >= 18 && sex == "男")>欢迎帅哥访问
<#else>欢迎美女访问
</#if>
<br>
<table border="1">
    <tr>
        <td>ID</td>
        <td>姓名</td>
        <td>密码</td>
    </tr>
    <#list userList as user>
        <tr>
            <td>${user.id}</td>
            <td>${user.username}</td>
            <td>${user.password}</td>
        </tr>
    </#list>
</table>
<img id="dream" src="${request.contextPath}/images/1.jpg" width="600px" height="600px">
</body>
</html>